package com.thoughtworks;

import com.thoughtworks.domain.Book;
import com.thoughtworks.options.Library;
import com.thoughtworks.reader.InputReader;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

import static com.google.common.collect.Lists.newArrayList;

public class BibliotecaRunner {

    private static Printer printer = new Printer(System.out);
    private static Library library = new Library(newArrayList(
            new Book("Pragmatic Thinking and Learning", "Andy Hunt", "2008", true),
            new Book("Prezentationzen", "Garr Reynolds", "2010", true)
    ));
    private static InputReader inputReader = new InputReader(new BufferedReader(new InputStreamReader(System.in)));

    public static void main(String[] args) throws IOException {
        Menu menu = new Menu(printer, library, inputReader);
        menu.display();
    }

}
